export interface TaskAssignmentType {
  id: number
  ticket_id: string
  team: string
  userid: string | number
  username: string

  remark?: string
  send_message?: boolean
  create_user?: string
  create_datetime?: string
}

export interface TaskFeedbackType {
  id: number
  ticket_id: string
  title: string
  content: string
  remark?: string
  is_active?: boolean
  create_user?: string
  create_datetime?: string
}

export interface TaskNeedType {
  id: number
  ticket_id: string
  need_type?: string
  name: string
  type?: string
  number?: number
  unit?: string
  remark?: string
  create_user?: string
  create_datetime?: string
}

export interface TaskWorkTeamType {
  id: number
  ticket_id: string
  name: string
  work_no?: string
  work_title?: string
  work_start?: number
  send_message?: boolean
  remark?: string
  create_user?: string
  create_datetime?: string
}

export interface TaskType {
  id: number
  ticket_id: string

  ao_id: string
  ao_name: string
  ao_type?: string
  status: string

  product_type: string
  flight: string
  station: string
  sub_station?: string
  position?: string
  team?: string
  team_leader?: string

  group1?: string
  group2?: string
  tag?: string

  start?: string
  end?: string
  priority?: number
  order?: number

  material_match?: boolean
  delivery_message?: boolean
  pi?: boolean

  in_daily_plan?: boolean
  in_weekly_plan?: boolean

  depends?: any
  assign_users?: TaskAssignmentType[]
  feedback?: TaskFeedbackType[]
  needs?: TaskNeedType[]
  work_teams?: TaskWorkTeamType[]
}

export interface TaskGroupType {
  id: number
  name: string
  progress: string
  number: number
  finish: number
  children?: TaskGroupType[]
}
